import { Column, Entity, PrimaryGeneratedColumn } from "typeorm"

@Entity({ name: "administrator", engine: "InnoDB" })
export class AdministratorEntity {
  // index
  @PrimaryGeneratedColumn({ type: "int" })
  id: number

  // account
  @Column({ type: "varchar" })
  account: string

  // password
  @Column({ type: "varchar" })
  password: string

  // email
  @Column({ type: "varchar", default: "qq.com" })
  email: string
}
